﻿@model MvcDatagrid.Models.Orders

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>Orders</legend>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Customers.CompanyName)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Customers.CompanyName)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Employees.LastName)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Employees.LastName)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.OrderDate)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.OrderDate)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.RequiredDate)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.RequiredDate)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.ShippedDate)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ShippedDate)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Shippers.CompanyName)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Shippers.CompanyName)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Freight)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Freight)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.ShipName)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ShipName)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.ShipAddress)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ShipAddress)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.ShipCity)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ShipCity)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.ShipRegion)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ShipRegion)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.ShipPostalCode)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ShipPostalCode)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.ShipCountry)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ShipCountry)
    </div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.OrderID }) |
    @Html.ActionLink("Back to List", "Index")
</p>
